package com.itheima.entity;

import com.itheima.vo.EssayVO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class YddEssay {
    private String cateName;
    private Integer id;
    private String title;
    private String author;
    private String keywords;
    private String description;
    private String content;
    private String pic;
    private Integer click;
    private Integer ishot;
    private Integer istop;
    private Long createDate;
    private Long updateDate;
    private Integer cateId;
    private String tags;
    private Integer status;
    private String loveNum;
    private Integer userId;
    private String defaultData;

    public EssayVO getEssayVO() {
        EssayVO essayVO = new EssayVO();
        essayVO.setCatename(cateName);
        essayVO.setId(id);
        essayVO.setTitle(title);
        essayVO.setAuthor(author);
        essayVO.setKeywords(keywords);
        essayVO.setDescription(description);
        essayVO.setContent(content);
        essayVO.setPic(pic);
        essayVO.setClick(click);
        essayVO.setIshot(ishot);
        essayVO.setIstop(istop);
        essayVO.setCreate_date(createDate);
        essayVO.setUpdate_date(updateDate);
        essayVO.setCateid(cateId);
        essayVO.setTags(tags);
        essayVO.setStatus(status);
        essayVO.setLovenum(loveNum);
        essayVO.setUser_id(userId);
        essayVO.setDefault_data(defaultData);
        return essayVO;
    }
}
